﻿
namespace Kratos.Framework.Extensions
{
    public static class StringExtensions
    {
        /// <summary>
        /// 格式化字符串
        /// </summary>
        /// <param name="format">formatter</param>
        /// <param name="parms">args</param>
        /// <returns>string</returns>
        public static string With(this string format, params object[] parms)
        {
            return string.Format(format, parms);
        }

        public static bool NullOrEmpty(this string source)
        {
            return string.IsNullOrEmpty(source);
        }

        public static bool NotNullOrEmpty(this string source)
        {
            return !source.NullOrEmpty();
        }
    }
}
